package dao

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Tel      string `json:"tel" gorm:"type:char(11);not null;unique;comment:'手机号'"`
	Password string `json:"password" gorm:"type:varchar(60);not null;comment:'密码'"`
	Username string `json:"username" gorm:"type:varchar(30);comment:'用户名'"`
}

func (User) TableName() string {
	return "user"
}
